<?php
// Use SSO (auth.tvb.com) directly
$userId = TVBGetAuthUserFromCookie();
if ($userId == FALSE) {
	$myUrl = ($_SERVER['REQUEST_URI']== "/" ) ? AC::PDES_BASE_URL."pms_task.html" : $_SERVER['REQUEST_URI'];
	$url = AC::AUTH_BASE_URL."login.php?destUrl={$myUrl}";
} else {
	$url = AC::PDES_BASE_URL."pms_task.html";
}
header("Location: $url");
exit;
?>
<?php require 'TVB/pms/pdes/CmsFramework/requires.php';?>
<!doctype html public "-//W3C//DTD HTML 4.01//EN' 'http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

	<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
	<title>TVB.COM - PMS2.0 - PDES</title>

	<?php include("inc/embed_top.php"); ?>
</head>

<body id="pms-login">


	<div id="doc4">

		<div id="hd">

          	<?php include("inc/masthead.php"); ?>

		</div>

		<div id="bd">

          	<?php include("inc/login.php"); ?>

		</div>

		<div id="ft">

          	<?php include("inc/footer.php"); ?>

		</div>

	</div>

    <?php include("inc/global-cfg.php"); ?>
    <?php include("inc/embed_bottom.php"); ?>    
</body>

</html>
